package com.gdssoft.pdaweb.model.am;

import java.util.Date;

import com.gdssoft.core.model.BaseModel;
import com.gdssoft.core.model.CheckCompleteResult;
import com.gdssoft.core.model.GenericModel;
import com.gdssoft.pdaweb.model.PdaMdAssetInfo;
import com.gdssoft.pdaweb.model.PdaMdBuilding;
import com.gdssoft.pdaweb.model.PdaMdDistrict;
import com.gdssoft.pdaweb.model.PdaMdHouse;
import com.google.gson.annotations.Expose;

/**
 * 电表抄表月计划读数记录
 * 
 * @author F3230313
 * 
 */
public class AmMonthPlanRead extends BaseModel implements GenericModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Expose
	protected Long mprId;
	@Expose
	protected String meterId;
	@Expose
	protected String barCode;
	@Expose
	protected String month;
	@Expose
	protected String executor;
	@Expose
	protected String districtID;
	@Expose
	protected String buildingID;
	@Expose
	protected String aparmentID;
	@Expose
	protected Long lastDegree;
	@Expose
	protected Long degree;
	@Expose
	protected Date readingTime;
	@Expose
	protected Long planID;
	@Expose
	protected String uploadTime;
	@Expose
	protected String downloadTime;
	
	protected String lastEditBy;
	
	protected Date lastEditDt;
	
	protected String createdby;
	
	protected Date createddt;
	
	protected PdaMdDistrict pdaMdDistrict;
	
	protected PdaMdBuilding pdaMdBuilding;
	
	protected PdaMdHouse pdaMdHouse;
	
	protected PdaAmMeter pdaAmMeter;
	

	
	public String getCreatedby() {
		return this.createdby;
	}

	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}

	public Date getCreateddt() {
		return this.createddt;
	}

	public void setCreateddt(Date createddt) {
		this.createddt = createddt;
	}

	public PdaMdDistrict getPdaMdDistrict() {
		return pdaMdDistrict;
	}

	public void setPdaMdDistrict(PdaMdDistrict pdaMdDistrict) {
		this.pdaMdDistrict = pdaMdDistrict;
	}

	public PdaMdBuilding getPdaMdBuilding() {
		return pdaMdBuilding;
	}

	public void setPdaMdBuilding(PdaMdBuilding pdaMdBuilding) {
		this.pdaMdBuilding = pdaMdBuilding;
	}

	public PdaMdHouse getPdaMdHouse() {
		return pdaMdHouse;
	}

	public void setPdaMdHouse(PdaMdHouse pdaMdHouse) {
		this.pdaMdHouse = pdaMdHouse;
	}

	public Long getMprId() {
		return mprId;
	}

	public void setMprId(Long mprId) {
		this.mprId = mprId;
	}

	public String getMeterId() {
		return meterId;
	}

	public void setMeterId(String meterId) {
		this.meterId = meterId;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public String getExecutor() {
		return executor;
	}

	public void setExecutor(String executor) {
		this.executor = executor;
	}

	public String getDistrictID() {
		return districtID;
	}

	public void setDistrictID(String districtID) {
		this.districtID = districtID;
	}

	public String getBuildingID() {
		return buildingID;
	}

	public void setBuildingID(String buildingID) {
		this.buildingID = buildingID;
	}

	public String getAparmentID() {
		return aparmentID;
	}

	public void setAparmentID(String aparmentID) {
		this.aparmentID = aparmentID;
	}

	public Long getLastDegree() {
		if (lastDegree < 0)
			return 0L;
		else
			return lastDegree;
	}

	public void setLastDegree(Long lastDegree) {
		this.lastDegree = lastDegree;
	}

	public Long getDegree() {
		if (degree < 0)
			return 0L;
		else
			return degree;
	}

	public void setDegree(Long degree) {
		this.degree = degree;
	}

	public Date getReadingTime() {
		return readingTime;
	}

	public void setReadingTime(Date readingTime) {
		this.readingTime = readingTime;
	}

	public Long getPlanID() {
		return planID;
	}

	public void setPlanID(Long planID) {
		this.planID = planID;
	}

	public String getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(String uploadTime) {
		this.uploadTime = uploadTime;
	}

	public String getDownloadTime() {
		return downloadTime;
	}

	public void setDownloadTime(String downloadTime) {
		this.downloadTime = downloadTime;
	}

	public String getLastEditBy() {
		return lastEditBy;
	}

	public void setLastEditBy(String lastEditBy) {
		this.lastEditBy = lastEditBy;
	}

	public Date getLastEditDt() {
		return lastEditDt;
	}

	public void setLastEditDt(Date lastEditDt) {
		this.lastEditDt = lastEditDt;
	}
	
	

	public String getBarCode() {
		return barCode;
	}

	public PdaAmMeter getPdaAmMeter() {
		return pdaAmMeter;
	}

	public void setPdaAmMeter(PdaAmMeter pdaAmMeter) {
		this.barCode = pdaAmMeter.getPdaMdAssetInfo().getBarCode();
		//this.meterId = this.barCode;
		this.pdaAmMeter = pdaAmMeter;
	}

	@Override
	public CheckCompleteResult checkComplete() {
		// TODO 增加检查逻辑
		return null;
	}

}
